package com.loubobooo.personal.blog.service;

import com.loubobooo.personal.blog.entity.Tag;
import com.loubobooo.personal.blog.entity.vo.ArticleListVo;
import com.loubobooo.personal.blog.entity.vo.TagVO;

import java.util.List;

public interface TagService {

    //获得标签总数
    public Integer countTag(Integer status);

    //获得标签列表
    public List<TagVO> listTag(Integer status);

    //获得含有该标签的文章列表
    public List<ArticleListVo> getArticleListByPage(Integer status, Integer pageNo, Integer pageSize, Integer tagId);

    //根据id获得标签信息
    public TagVO getTagById(Integer id);

    //添加标签
    public void insertTag(Tag tag);

    //修改标签
    public void updateTag(Tag tag);

    //删除标签
    public void deleteTag(Integer id);

    //根据标签名获取标签
    public Tag getTagByName(String name);

}
